package com.softeem.score.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "成绩项实体类")
public class GradeComponentDto {

    @Schema(description = "课程id")
    private Long courseId;

    @Schema(description = "成绩项集合")
    private List<GradeComponent> gradeComponentList;

    // 内部类 GradeComponent
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class GradeComponent {
        @Schema(description = "成绩项id")
        private Integer gradeComponentId;
        @Schema(description = "成绩项权重")
        private BigDecimal weightage;
    }

}

